#pragma once
#include "expr.h"
class Arith :
    public Expr
{
public:
    Arith(Expr *_expr1, Expr *_expr2, Token *_tok);
    virtual ~Arith(void);

    virtual int DoEvalInt();

    virtual float DoEvalFlt();

    inline bool EqualFlt(float left, float right)
    {
        return (left - right > -1E-6) && (left - right < 1E-6);
    }

private:
    Expr *leftExpr;
    Expr *rightExpr;
};

